package com.weijin.springbootbase.mapper;

import com.weijin.springbootbase.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author WeiJin
 * @Version 1.0
 * @Date 2025/3/11 10:57
 */
@Repository
@Mapper
public interface UserMapper {

    List<User> selectAll();

    int insertOne(User user);

    int deleteById(Integer id);

    int conditionUpdateById(User user);

    User selectById(Integer id);

    int deleteBatchIds(Integer[] ids);

    long selectCount();

    List<User> selectLimit(Integer current, Integer pageSize);
}
